// ProcessListDlg.h : header file
//

#if !defined(AFX_PROCESSLISTDLG_H__0C763445_1FA2_4E31_B14F_E6EF336F9764__INCLUDED_)
#define AFX_PROCESSLISTDLG_H__0C763445_1FA2_4E31_B14F_E6EF336F9764__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "proclistp.h"
#include "afxcmn.h"
/////////////////////////////////////////////////////////////////////////////
// CProcessListDlg dialog

class CProcessListDlg : public CDialog
{
// Construction
public:
	CModuleDetails *pModuleToTerminate;
	BOOL LoadProcesses();
	CProcessListDlg(CWnd* pParent = NULL);	// standard constructor
	CImageList m_ImageList;
	CBitmap m_Bitmap;
// Dialog Data
	//{{AFX_DATA(CProcessListDlg)
	enum { IDD = IDD_PROCESSLIST_DIALOG };
	CListCtrl	m_ListCtrl;
	CTreeCtrl	pCtrl;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CProcessListDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CProcessListDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSelchangedTree(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnButton1();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnBnClickedButton2();
	BOOL GetFileDateAsString( LPFILETIME pFt, char * pszDate, unsigned cbIn);	
	BOOL GetFileTimeAsString( LPFILETIME pFt, char * pszTime, unsigned cbIn);	
public:
	// Modules_Path
	CListCtrl m_ListCtrl2;
public:
	CListCtrl m_List;
	void UpdateProcessTime(DWORD processID);
public:
	afx_msg void OnBnClickedButton3();
public:
	afx_msg void OnLvnItemchangedList2(NMHDR *pNMHDR, LRESULT *pResult);
public:
	afx_msg void OnHdnItemclickList2(NMHDR *pNMHDR, LRESULT *pResult);
	DWORD RvaToOffset(IMAGE_NT_HEADERS *NT, DWORD Rva);
	
public:
	afx_msg void OnBnClickedButton4();
public:
	CListCtrl m_List4;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PROCESSLISTDLG_H__0C763445_1FA2_4E31_B14F_E6EF336F9764__INCLUDED_)
